#!/usr/bin/env node
const input = JSON.parse(require('fs').readFileSync(0, 'utf-8'));
const messageCount = parseInt(input.taskResume?.previousState?.messageCount || '0');

console.log(JSON.stringify({
  cancel: false,
  contextModification: `TASK_CONTEXT: Resuming task with ${messageCount} previous messages`,
  errorMessage: ""
}));
